package eudjok

import grails.test.*

class ComentarioTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testConstraints() {
	    mockDomain(Comentario)
		
		def c = new Comentario(texto:"", data:)
		
		assertFalse 'Texto nao existe!', c.validate()
		
		//assertEquals "min", c.errors.
		
		assertFalse 'Data eh nulo!', c.validate()
		
		//assertTrue 'Conteudo informado!', c.validate()
		
		//assertFalse 'Dj eh nulo!', c.validate()
    }
}
